package com.niit;

import com.niit.entity.Student;
import com.niit.mapper.StudentMapper;
import com.niit.service.StudentService;
import com.niit.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class Test {
    public static void main(String[] args) { // 是你的单击事件处理
        Student student = new Student();
        // TODO 接收界面的数据 student.setSid(xxxxTextFiled.getText());
        StudentService studentService = new StudentService();
        int result = studentService.insertStudent(student);
    }
}
